//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package cn.ty.jpa.repository;

import java.util.List;

import cn.ty.jpa.utils.EntityUtils;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;

public final class JpaHelper {
//	public static <T> Page<T> castPage(Page<?> pageList, PageRequest page, Class<T> toClass) {
//		List<T> result = EntityUtils.cast(pageList.getContent(), toClass);
//		return new PageImpl(result, page, pageList.getTotalElements());
//	}

	private JpaHelper() {
		throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
	}
}
